import request from '@/util/request';

const  getPostList= async () => {
    return request({
        url: `/community`,
        method: 'get'
    })

};

const getPostDetail = async (id) => {
    return request({
        url: `/community/detail/${id}`,
        method: 'get'
    })

};

export {
    getPostList,
    getPostDetail
}